
window.onload = function (){
        var buyResult = localStorage.getItem('result');
        buyResult = JSON.parse(buyResult);
        console.log(buyResult);
        if(buyResult.feedBack == 'success'){
            $('#pay').html('您的订单已付款成功！');
            $('#pay2').html('付款成功后，7天发货！');
            var str =  '<p>金额:<span class="pay-total">' + buyResult.totalPrice + '元</span></p>' +
                '<p>订单：' + buyResult.orderID + '</p><p>配送：' + buyResult.cusomerName + '/' + buyResult.phone + '/ ' + buyResult.address
                + '</p><p></p></br><p><a style="font-size: 15px;color: #0a6999;" href="index.html">返回首页</a></p>';
            $('#buyResult').html(str);
        }else{
            $('#pay').html('付款失败！');
            $('#result-ico').src('images/error.jpg');
        }


    }
